export default {
  url: "/do/select/code",
  conditionLimit:null,
  selectable: false,
  showIndex: false,
  compact: 220,
  path: 'system/code',
  title: "编号配置",
  entitys: [{"name":"id","label":"编号","type":"search"},{"name":"creator","label":"创建人","type":"user"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"},{"name":"title","label":"编号名称"},{"name":"rules","label":"编号规则","type":"map"},{"name":"sample","label":"示例","type":"text"},{"name":"companyId","label":"所属公司","type":"search","depend":"company"}],
  columns: ["id","title","sample","createGmt"],
  condition: [],
  slots: {
      header$() {
      return (
        <>
        <z-action p='10lzwyql' label='添加规则' mode='dialog' fields={["title",{"name":"rules","slot":"rulesSlot"}]} rules={{"title":{"message":"请输入正确内容","required":true}}} type='primary' url='/do/put/code' />
        </>
      )
    },
    action$({ row }) {
      return (
        <>
          <z-action p='jzwg99yi' label='编辑' mode='dialog' fields={["title",{"name":"rules","slot":"rulesSlot"}]} link data={row} url='/do/patch/code' />
<z-action p='zy3v2qk7' label='删除' mode='confirm' link data={row} url='/do/delete/code' />
        </>
      )
    }
  }
}
  